package com.burns.strawberry.controller;/**
 * Created by burns.
 *
 * @author <a href="http://www.esoon-soft.com/">burns</a>
 * @date 2020/12/08 22:33
 */

import org.springframework.jms.annotation.JmsListener;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName CustomerController
 * @Description 客户控制器
 * @Author Burns
 * @DAte 2020/12/8 22:33
 * @Version 1.0
 **/
@RestController
public class CustomerController {

    @JmsListener(destination = "active.queue")
    public void readActiveQueue(String message){
        System.out.println("接收到："+message);
    }
}
